package com.zm.demo.shoppingmall.order.api;

import com.zm.demo.shoppingmall.order.model.TOrder;

import java.util.List;

/**
 * @desc:
 * @author: z01140
 * @date: 2021/5/25 9:32
 */
public interface OrderService {

    int addOrder(TOrder order);

    int updateOrder(TOrder order);

    int deleteOrder(Integer orderId);

    TOrder getOrderByOrderNo(String orderNo);

    List<TOrder> getOrderByUserId(int userId);

    List<TOrder> getOrderByProductNo(String productNo);
}
